﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 保险信息
    /// </summary>
    public class Insurance : EntityBase
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int BranchId { get; set; }
        /// <summary>
        /// 机构
        /// </summary>
        public virtual Branch Branch { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        public string BranchName { get; set; }
        /// <summary>
        /// 专线ID
        /// </summary>
        public int SpecialId { get; set; }
        /// <summary>
        /// 专线
        /// </summary>
        public virtual Special Special { get; set; }
        /// <summary>
        /// 专线名称
        /// </summary>
        public string SpecialName { get; set; }
        /// <summary>
        /// 保单人详细
        /// </summary>
        public virtual ICollection<InsurancePerson> InsurancePersons { get; set; }

        /// <summary>
        /// 保单金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 状态
        /// False-失败 True-成功
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 购买人ID
        /// </summary>
        public int BuyerId { get; set; }
        /// <summary>
        /// 购买人
        /// </summary>
        public virtual User Buyer { get; set; }
        /// <summary>
        /// 购买时间
        /// </summary>
        public DateTime BuyTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 保单号
        /// </summary>
        public string InsuranceNumber { get; set; }
        /// <summary>
        /// 保单地址
        /// </summary>
        public string InsuranceUrl { get; set; }
    }
}
